<?php

namespace app\admin\validate;

use think\Validate;

class CheckArticle extends Validate
{

    protected $rule = [
        'cate_id' =>  'gt:0',
        'title'  =>  'require|max:150',
        'keywords' =>  'max:100',
        'description' =>  'max:200',
        //'img_url' =>'require',
        'content' =>'require'
    ];


    protected $message = [
        'cate_id'=>'请选择资讯分类',
        'title.require'=>'请输入资讯标题',
        'content.require'=>'请输入资讯内容',
    ];

    /**
     * @return $this
     * @author: yu
     * @describe:edit 验证场景定义
     */
    public function sceneArticleName(){

    }

}